home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
bc_ti
/
ti804.asc
< prev
next >
Wrap
Text File
|
1992-02-24
|
707b
|
67 lines
PRODUCT : Turbo C++ NUMBER : 804
VERSION : All
OS : DOS
DATE : February 25, 1992 PAGE : 1/1
TITLE : Spawning a batch (.bat) file
To spawn a batch file, you must spawn the command processor with
the batch file as an argument. For example:
spawnl(P_WAIT, "c:\\command.com",
"c:\\command.com","/c", "file.bat", NULL);
This example will spawn command.com assuming it is located in the
root directory of drive C and then tell command.com to execute a
batch file called file.bat!